<%@ page contentType="text/html; charset=utf-8" language="java"  errorPage="" %>
<%@ page import="com.netscenery.yang.model.Container" %>
<%@ page import="com.netscenery.yang.model.Env" %>
<%@page import="offer.SessionObj"%>
<%@page import="system.bean.Member"%>
<%@page import="java.util.ArrayList"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Container container = new Container(new Env(),"mycontainer");
Object itemNode = request.getAttribute("itemNode");
Object opType   = request.getAttribute("opType"); //获取操作对象
if( null != itemNode){
	container = (Container)request.getAttribute("itemNode");
}
//Session ModuleStatus control
SessionObj sessionObj = (SessionObj)request.getSession().getAttribute("sessionObj");
String control_disabled = "";
if(!sessionObj.getModuleStatus().toString().equalsIgnoreCase("EDITING")){
 	control_disabled ="disabled='disabled'";
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>QA Audit</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>/css/index.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>css/items.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>css/subItems.css" />
    <script type="text/javascript"  src="<%=basePath%>jstree-v.pre1.0/_lib/jquery.js"></script>
    <script type="text/javascript"  src="<%=basePath%>js/coverLayer.js"></script>
    <script type="text/javascript"  src="<%=basePath%>js/StringUtil.js"></script>
    <script type="text/javascript"  src="<%=basePath%>js/QaAudit.js"></script>
</head>

<body class="body" >
<script type="text/javascript">
  $(document).ready(function(){
        $("#submitButton").click(function(){
	 	     $(":input").css("border-color","");
		     if($("#qa_audit_result").val().trim().length == 0){
			        $("#qa_audit_result").css("border-color","red");
			        alert("审核结果 不能为空！");
			        return;
		     }
		    document.getElementById("QaAuditForm").submit(); 
		});
   });
 	
</script>
 <div id="" class="tableContent" >
 <!-- ****************************************************************************************************** -->
   	  <div class="itemTitle">
	        QA 审核员填写审核结果   
	  </div>
	  <form id="QaAuditForm" method="post" action="<%=basePath %>QaAuditResultSubmitServlet" class="IndexFormStyle" >
	  <input type="hidden"  id="singMemberIds" name="singMemberIds" value=""  />
	  <div class="itemDiv" >
	     <span class="textSpan">&nbsp;审核结果:</span>
	     <select style="width:305px;   height:23px;"   class="inputSelect" id="qa_audit_result" name="qa_audit_result">
	     	<option value = ""></option>
	     	<option value = "1">通过</option>
	     	<option value = "0">不通过</option>
	     </select>
	  </div>
	  <div class="itemDiv">
	   		<span class="textSpan">&nbsp;审核意见:</span><br/>
	    	<textarea class="textArea"  id="qa_audit_common" name="qa_audit_common"></textarea>
	  </div>
	   
	    
	 <div class="itemDiv">
	     <span class="textSpan">&nbsp;会签审核人员：</span><input type="button" onclick="chooseSignMember()" value="添加" /><br/>
	     <div id="SignMembersDiv" style="background:#FFF;margin:0px;overflow:auto;max-height:300px;border:1px;border-color:#666;font-size:14px;">
	      <% 	ArrayList<Member>  list = (ArrayList<Member>)request.getAttribute("defaultSignMembers"); %>
  		  <% for(int i = 0 ; i < list.size() ; i++){ %>
  		  <% Member member = (Member)list.get(i); %>
  		   <div style="float:left;width:200px; margin:5px;padding-top:5px; border:1px dotted #CCC;">
  		       <div style="float:left;width:175px;"><%=member.getReal_name() %><%=member.getEmpNo() %></div>
  		       <div style="float:left;width:25px;cursor:pointer;color:#CCC;font-size:12px;">默认</div>
  		       <div style="clear:both" ></div>
  		   </div>
  		  <%} %>
  		   <div id="ListDiv_cleanfloat" style="clear:both" ></div>
	     </div>
   </div>
   <div id="submitContent" class="submitContent">
     
     <span id="opNoticeSpan" style="color:red;" ></span>
     <span class="textSpan">&nbsp;</span>
     <input type="button"  id="submitButton" value="提交"  />
  </div>
  </form>
 <!-- ****************************************************************************************************** -->
 </div>
 <div id="coverDiv" class="coverDiv"></div> <!-- 覆盖层，要放在所有弹出层之前 -->
 <!-- =================================================提交QA审核结果 Begin========================================================= -->
 
 <div id="submitQaAuditResultDiv" class="AMContainer">
    <div id="addItem_title" style="border-bottom:1px solid #666;margin-bottom:8px;">
        <div id="Audit_title" style="float:left; font-weight:bold;">添加会签审核人员 </div>
        <div style="float:right;">
            <a href="javascript:void(0);" id="QaAuditResult_close" title="close">close</a>
        </div>
        <div style="clear:both" ></div>
    </div>
   	<div  style=" padding:5px;border:1px solid #EAEAEA; margin:5px; color:red;font-weight:bold;"  >
   		<div id="SignmembersListDiv" style="margin:0px;overflow:auto;max-height:120px;border:1px;border-color:#666;color:#000;font-size:14px;">
   		   
   		</div>
	</div>
   	<div id="AuditOption" class="submitContainer">
   	   <input type="button" value="确定" onclick="addSignMembers()" /> &nbsp;
   	   <input type="button" value="取消" onclick="hiddenAuditResultDiv()"/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	</div>
 </div>
 
 <!-- =================================================提交QA审核结果 END=========================================================== -->
 
</body>
</html>